﻿<html>
<head>
    <title>content</title>
    <script src="jquery-ui-1.9.0.custom/js/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="jquery-ui-1.9.0.custom/js/jquery-ui.js" type="text/javascript"></script>
    <style type="text/css">
        body
        {
            margin: 0px;
            padding: 0px; /*margin-left: 10px;*/
        }
        
        #draggable
        {
            width: 200px;
            height: 300px;
            background-color: #555;
            z-index: 100;
            position: absolute;
            top: 20px;
            left: 20px;
        }
        
        #container
        {
            width: 500px;
            height: 900px;
            background-color: #777;
            float: left;
            position: relative;
        }
        
        #container2
        {
            width: 500px;
            height: 900px;
            background-color: #666;
            float: right;
            position: relative;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="draggable">
            draggable
        </div>
        1
    </div>
    <div id="container2">
        2
    </div>
    <script type="text/javascript">
        $("#draggable").draggable({

            containment: "document",
            revert: true,
            stop: function (e, ui) {
                //ui.helper.animate(ui.offset, 1000);
                //ui.helper.animate(ui.offset, 1000);
            }
        });
    </script>
</body>
</html>
